sources = $(wildcard *.c)
objects = $(subst .c,.o,$(sources))
target = fobar

LIBS = -levent 
CPPFLAGS = -g3
LDFLAGS = 

all: $(target)

$(target): $(objects)
	echo $(objects)
	$(CC) -o $(target) $(objects) $(LIBS) ${LDFLAGS}

clean:
	rm -f *.o $(target)
